<template>
  <div class="load" v-if="props.loading">
    <van-loading class="van" />
  </div>
</template>

<script lang="ts" setup>
import { defineProps } from "vue";
let props = defineProps({
  loading: {
    type: Boolean,
    default: false,
  },
});
</script>

<style scoped lang="scss">
.load {
  width: 100vw;
  height: 240px;
  @include flex(row, center, center);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999999999999;
}
</style>
